<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<!DOCTYPE html>
<html lang="UTF-8">
  <head>
  <%@include file="/WEB-INF/include-head.jsp" %>
</head>
  <body>
	<!-- nav -->
	<%@include file="/WEB-INF/include-nav.jsp" %>
    <div class="container-fluid">
      <div class="row">
        <%@include file="/WEB-INF/include-sidebar.jsp" %>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
          <ol class="breadcrumb">
				  <li><a href="admin/to/main.html">首页</a></li>
				  <li><a href="admin/query/for/search.html">数据列表</a></li>
				  <li class="active">修改</li>
				</ol>
			<div class="panel panel-default">
              <div class="panel-heading">表单数据<div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-question-sign"></i></div></div>
			  <div class="panel-body">
				<form:form action="admin/update.html" method="post" modelAttribute="admin"><!-- 不知怎么解释，自己领悟吧 -->
					<!-- 模型对象中包含的属性可以使用form:hidden -->	
					<form:hidden path="id"/>
					<!-- 模型对象中没有的属性不能使用form:hidden -->
					<input type="hidden" name="pageNum" value="${param.pageNum }" />	
					
				  <div class="form-group">
					<label for="exampleInputPassword1">登陆账号 </label>
					<form:input path="loginAcct" Class="form-control"/>
				  </div>
				  <div class="form-group">
					<label for="exampleInputPassword1">登陆密码 </label>
					<form:input path="userPswd" Class="form-control"/>
				  </div>
				  <div class="form-group">
					<label for="exampleInputPassword1">用户名称</label>
					<form:input path="userName" class="form-control"/>
				  </div>
				  <div class="form-group">
					<label for="exampleInputEmail1">邮箱地址</label>
					<form:input path="email" class="form-control" />
					<p class="help-block label label-warning">请输入合法的邮箱地址, 格式为： xxxx@xxxx.com</p>
				  </div>
				  <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-edit"></i> 修改</button>
				  <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>
				</form:form>
			  </div>
			</div>
          
        </div>
      </div>
    </div>

  </body>
</html>